package org.elasticsearch.index.analysis;

import org.apache.lucene.analysis.Tokenizer;
import org.apache.lucene.util.AttributeFactory;

import java.util.Map;

public class DemoTokenizerFactory implements TokenizerFactory {

    public DemoTokenizerFactory() {
    }

    @Override
    public String name() {
        return "demo_tokenizer";
    }

    @Override
    public Tokenizer create() {
        return new DemoTokenizer();
    }
}
